package com.byb.server.service;

import com.byb.server.service.dto.PayRuleDescriptionDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing PayRuleDescription.
 */
public interface PayRuleDescriptionService {

    /**
     * Save a payRuleDescription.
     *
     * @param payRuleDescriptionDTO the entity to save
     * @return the persisted entity
     */
    PayRuleDescriptionDTO save(PayRuleDescriptionDTO payRuleDescriptionDTO);

    /**
     *  Get all the payRuleDescriptions.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<PayRuleDescriptionDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" payRuleDescription.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    PayRuleDescriptionDTO findOne(Long id);

    /**
     *  Delete the "id" payRuleDescription.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    /**
     * Search for the payRuleDescription corresponding to the query.
     *
     *  @param query the query of the search
     *  
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<PayRuleDescriptionDTO> search(String query, Pageable pageable);
}
